import { httpInstance } from '@/utils/request'

interface FetchProjectListAPIParams {
  status?: string
  keyword?: string
}

interface FetchProjectAPIResData {
  code: number
  data: Project[]
  msg: string
  time: string
}

export function fetchProjectListAPI(
  params: FetchProjectListAPIParams,
  token: string,
) {
  return httpInstance.get<FetchProjectAPIResData, FetchProjectListAPIParams>(
    'api/Project_extend/projectList',
    { params, headers: { token } },
  )
}
